package com.zoespeer.food_delivery_comment_api.vo;

import lombok.Data;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

@Data
public class RestaurantListRequestVO {
    @NotNull(message = "类型不能为空")
    private String type; // 原Integer改为String，对应餐厅分类名称（如“快餐”“中餐”）

    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNum;

    @NotNull(message = "每页条数不能为空")
    @Min(value = 1, message = "每页条数不能小于1")
    private Integer pageSize;

    private String searchQuery;
}